<extend name="Public/base"/>
<block name="body">
  <form method="post" class="form-horizontal J_ajaxForm" action="{:U("")}">
    <div class="table_list">
      <table  width="100%" class="table table_from table-bordered">
        <tbody>
          <tr>
            <th width="180">用户名:</th>
            <td><input type="text" class="input" name="name" value="{$name}"></td>
          </tr>

          <tr>
            <th width="180">手机:</th>
            <td><input type="text" class="input" name="tel" value="{$tel}"></td>
          </tr>
           <tr>
            <th width="180">昵称:</th>
            <td><input type="text" class="input" name="nickname" value="{$nickname}"></td>
          </tr>
          <tr>
            <th>密码:</th>
            <td><input type="password" class="input" name="pass" value="" >
              <span class="info">不修改则留空</span></td>
          </tr>
          <tr>
            <th>邮箱:</th>
            <td><input type="text" class="input" name="email" value="{$email}"></td>
          </tr>


          
             <tr>
          <th>邮箱认证</th>
          <td>
          
       
            <label class="radio inline"> <input type="radio"  name="email_status"   value="1" 
                
              <if condition="$email_status"> checked="checked" </if>
              >
              已认证 </label>
            <label class="radio inline"> <input type="radio"  name="email_status"   value="0" 
                
              <if condition="!$email_status"> checked="checked" </if>
              >
              未认证</label>
          
          
          </td>
          
          </tr>

          <tr><th>会员组</th>
            <td>

           
              <select name="group" class="normal_select">

                <volist name="groups" id="vo">


                    <php>$selected=($group==$vo[id])?"selected":'';</php>

                  <option value="{$vo.id}" {$selected}>{$vo.name}</option>
                </volist>
              </select>
            </td>
          </tr>

          <tr><th>会员组</th>
            <td>


              <select class="input-large "  name="shop_id" >

                <option value="">请选择</option>

                <volist name=":F('Shop')" id="vo"  >

                  <php>$clecked=($vo[id]==$shop_id)?'selected':'';</php>


                  <option value="{$vo.id}" {$clecked}>{$vo.name}</option>

                </volist>
              </select>

            </td>
          </tr>




          <tr>
          <th>状态</th>
          <td>
          
       
            <label class="radio inline"> <input type="radio"  name="status"   value="1" 
                
              <if condition="$status"> checked="checked" </if>
              >
              正常 </label>
            <label class="radio inline"> <input type="radio"  name="status"   value="0" 
                
              <if condition="!$status"> checked="checked" </if>
              >
              禁用</label>
          
          
          </td>
          
          </tr>
        </tbody>
      </table>
    </div>
    <div class="form-actions">
      <input type="hidden" name="id" value="{$id}"/>
      <button class="btn btn-info ajax-post " target-form="J_ajaxForm" type="submit"> 更新</button>
       <a class="btn btn-return" href="__URL__" >返 回</a>
      
  </form>
</block>
